//mock数据模拟
import Mock from 'mockjs'
//图标数据
let List = []
export default {
    getStatisticalDate:()=>{
       for(let i=0;i<7;i++){
         List.push(
            Mock.mock({
               苹果:Mock.Random.float(100,800,0,0),
               vivo:Mock.Random.float(100,800,0,0),
               oppo:Mock.Random.float(100,800,0,0),
               魅族:Mock.Random.float(100,800,0,0),
               三星:Mock.Random.float(100,800,0,0),
               小米:Mock.Random.float(100,800,0,0),
            })
         )
       }
       return {
         code:20000,
         data:{
            //饼图
            videoData:[
               {
                  name:'小米',
                  value:2999
               },
               {
                  name:'苹果',
                  value:5999
               },
               {
                  name:'vivo',
                  value:1500
               },
               {
                  name:'oppo',
                  value:1999
               },
               {
                  name:'魅族',
                  value:2200
               },
               {
                  name:'三星',
                  value:3999
               },
            ],
            userData:[
               {
                  date:'周一',
                  new:5,
                  active:200
               },
               {
                  date:'周二',
                  new:10,
                  active:500
               },
               {
                  date:'周三',
                  new:12,
                  active:550
               },
               {
                  date:'周四',
                  new:60,
                  active:800
               },
               {
                  date:'周五',
                  new:22,
                  active:520
               },
               {
                  date:'周六',
                  new:66,
                  active:890
               },
               {
                  date:'周日',
                  new:35,
                  active:400
               },
            ],
            orderData:{
               date:['20221001','20221002','20221003','20221004','20221005','20221006','20221007'],
               data:List
            },
            tableData:[
               {
                  name:'oppo',
                  todayBuy:400,
                  monthBuy:3000,
                  totalBuy:55500
               },
               {
                  name:'vivo',
                  todayBuy:400,
                  monthBuy:3300,
                  totalBuy:28200
               },
               {
                  name:'苹果',
                  todayBuy:500,
                  monthBuy:8000,
                  totalBuy:32000
               },
               {
                  name:'三星',
                  todayBuy:440,
                  monthBuy:5580,
                  totalBuy:23800
               },
               {
                  name:'魅族',
                  todayBuy:300,
                  monthBuy:4000,
                  totalBuy:32000
               },
               {
                  name:'小米',
                  todayBuy:450,
                  monthBuy:7800,
                  totalBuy:44800
               },
            ],
         }
       }
    }
}